// src/api/common.ts
import request from './request';
import type { CommonType } from '@/types/api';

/**
 * 获取通用字典数据
 * @param groupId 组ID (1-关系类型, 2-事件类型)
 */
export const getCommonDictApi = (groupId: number): Promise<CommonType[]> => {
    return request({
        url: `/api/common/${groupId}`,
        method: 'get'
    });
};
